package com.village.zpark.pojo;

import com.village.zpark.common.DateUtil;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name="governance")
public class Governance {
    @Id
    @Column(name="id")
    private Integer id;
    @Column(name="evaluationtime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date evaluationtime;//评估时间
    @Column(name="governancearea")
    private Integer governancearea;//治理区域
    @Column(name="grade")
    private String grade;//等级
    @Column(name="evaluationdetails")
    private String evaluationdetails;//评估详情
    public String getEvaluationtimeStr(){
        return DateUtil.dateConvert(evaluationtime);
    }
}
